package com.woniuxy.service.impl;

import com.woniuxy.entity.User;
import com.woniuxy.mapper.UserMapper;
import com.woniuxy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUserInfoByUserId(Integer userId) {
        return userMapper.findUserInfoByUserId(userId);
    }

    @Override
    public void updateByUserId(User user) {
        userMapper.updateByUserId(user);
    }
}
